#系统安全审计
#logrotate日志保存周期
sed -i 's/weekly/monthly/g'  /etc/logrotate.conf
sed -i 's/rotate 4/rotate 72/g'  /etc/logrotate.conf
sed -i 's/#compress/compress/g'  /etc/logrotate.conf
service  rsyslog restart

#开启审计功能
if [ `rpm -qa|grep audit|wc -l` -ne 0 ]
then
    yum install auditd -y
    service   auditd start
else
        service  auditd  start
fi
